import { mapGetters } from "vuex";

export default {
    name: 'Header',
    data() {
        return {
            collapseFlag: false
        }
    },
    computed: {
        ...mapGetters(["getCrumb"])
    },
    methods: {
        _collapse(){
            this.collapseFlag = !this.collapseFlag;
            this.$emit('collapse');
        },
        loginOut(){
            this.$ls.remove('userInfo');
            this.$router.push({path: '/login' });
        }
    },
    mounted() {

    }
}
